year = int(input("请输入年份："))
month = int(input("请输入月份："))
day = int(input("请输入日份："))

map = [0,31,28,31,30,31,30,31,31,30,31,30,31]

if year%400==0 or (year%4==0 and year%100!=0):
    map[2] = 29

d = day
for mon in range(1,month):
    print(map)
    d += map[mon]

print(d)
